# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=toml-adapt
pkgver=0.2.7
pkgrel=0
pkgdesc="A simple command-line interface (CLI) for manipulating toml files"
url="https://github.com/firefly-cpp/toml-adapt"
arch="noarch"
license="MIT"
depends="python3 py3-toml py3-click"
checkdepends="python3-dev py3-pytest"
makedepends="py3-setuptools poetry py3-installer py3-platformdirs"
source="https://github.com/firefly-cpp/toml-adapt/archive/$pkgver/toml-adapt-$pkgver.tar.gz"

build() {
	GIT_DIR="$builddir" poetry build -f wheel
}

check() {
	python3 -m pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		dist/toml_adapt-$pkgver-py3-none-any.whl
}

sha512sums="
f5440a771ed320c622610165f63293da1e1dd061bdc7c15dd84c3680422134431088719ba28662ae7762a87326eacf53992a2b3ce58ffe3dc1151420a700880d  toml-adapt-0.2.7.tar.gz
"
